package model

import "github.com/jinzhu/gorm"

type Subject struct {
	gorm.Model
	Name    string     `gorm:"type:varchar(256);not null" json:"name"` // 学科名称
	Student []*Student `gorm:"many2many:student_subjects"`             // 学生列表
}
